--local print_r = require "print_r"

if not _P then
  print "inject error "
  return
end
print("hotfix begin")

 --鐢ㄤ簬鑾峰彇鍑芥暟鍙橀噺
 local function get_up(f)
     local u = {}
     if not f then
         return u
     end
     local i = 1
     while true do
         local name, value = debug.getupvalue(f, i)
         if name == nil then
             return u
         end
         u[name] = value
         i = i + 1
     end
     return u
 end

 -- 鑾峰彇鍘熸潵鐨勫嚱鏁板湴鍧??锛屽強鍑芥暟鍙橀噺
local fun = GET_fun
if fun then
   print(fun("d"))
else
   print("not find fun")
end

GET_fun = function(h)
     return('New************** ')
 end

 print("hotfix end")

